package main

import (
	"google.golang.org/protobuf/types/known/timestamppb"
	"grpc-server/pb"
	"time"
)

var employees = []pb.Employee{
	{
		Id:        1,
		No:        1994,
		FirstName: "Chandler",
		LastName:  "Bing",
		MonthSalay: &pb.MonthSalay{
			Basic: 6000,
			Bonus: 125.5,
		},
		Status: pb.EmployeeStatus_NORMAL,
		LastModified: &timestamppb.Timestamp{
			Seconds: time.Now().Unix(),
		},
	},
	{
		Id:        2,
		No:        1999,
		FirstName: "Rachel",
		LastName:  "Green",
		MonthSalay: &pb.MonthSalay{
			Basic: 100,
			Bonus: 0,
		},
		Status: pb.EmployeeStatus_RETIRED,
		LastModified: &timestamppb.Timestamp{
			Seconds: time.Now().Unix(),
		},
	},
	{
		Id:        3,
		No:        2004,
		FirstName: "Ross",
		LastName:  "Geller",
		MonthSalay: &pb.MonthSalay{
			Basic: 8000,
			Bonus: 1250.9,
		},
		Status: pb.EmployeeStatus_ON_VACATION,
		LastModified: &timestamppb.Timestamp{
			Seconds: time.Now().Unix(),
		},
	},
}
